
package STUDENTS.TRANTHAIHA.DEMO;

/**
 * @author Administrator
 *
 */
public class btvn2 {
	public static void main(String[] args) {
		people p1 = new people();
		people p2 = new people();
		people p3 = new people();
		people p4 = new people();
		
		
		p1.id= "1";
		p1.name= "Nguyen Van Minh";
		p1.chan= 2;
		p1.tay= 2;
		p1.toc= "den";
		p1.ngonngu="VNI";
		p1.sex="Nam";
		
		p2.id= "2";
		p2.name= "Pham Hong Nhung";
		p2.chan= 2;
		p2.tay= 2;
		p2.toc= "nau";
		p2.ngonngu="VNI";
		p2.sex="Nu";

		p3.id= "3";
		p3.name= "Hoang Minh Hieu";
		p3.chan= 2;
		p3.tay= 2;
		p3.toc= "vang";
		p3.ngonngu="VNI";
		p3.sex="Nam";
		
		
		
		p4.id= "1";
		p4.name= "J.Brave";
		p4.chan= 2;
		p4.tay= 2;
		p4.toc= "do";
		p4.ngonngu="VNI";
		p4.sex="Nam";
		
		System.out.println("---------------1---------------");
		System.out.println("+ Ho va ten :  " + p1.name);
		System.out.println("+ So chan: " + p1.chan + "--So tay: " + p1.tay);
		System.out.println("+ Ngo ngu: " + p1.ngonngu);
		System.out.println("+ Gioi tinh: " + p1.sex);
		
		System.out.println("---------------2---------------");
		System.out.println("+ Ho va ten :  " + p2.name);
		System.out.println("+ So chan: " + p2.chan + "--So tay: " + p2.tay);
		System.out.println("+ Ngo ngu: " + p2.ngonngu);
		System.out.println("+ Gioi tinh: " + p2.sex);
		
		System.out.println("---------------3---------------");
		System.out.println("+ Ho va ten :  " + p3.name);
		System.out.println("+ So chan: " + p3.chan + "--So tay: " + p3.tay);
		System.out.println("+ Ngo ngu: " + p3.ngonngu);
		System.out.println("+ Gioi tinh: " + p3.sex);
		
		System.out.println("---------------4---------------");
		System.out.println("+ Ho va ten :  " + p4.name);
		System.out.println("+ So chan: " + p4.chan + "--So tay: " + p4.tay);
		System.out.println("+ Ngo ngu: " + p4.ngonngu);
		System.out.println("+ Giopi tinh: " + p4.sex);
		
		System.out.println("HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH");
		
		System.out.println(p1.name + " thành tên " +  p1.changeOOP(p1.name, "Nguyễn Văn Mạnh"));
		System.out.println(p2.name + " thành tên " + p2.changeOOP(p2.name, "Phạm Thị Hồng Nhung"));
		
		System.out.println("HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH");
		
		
		System.out.println(p1.changeOOP(p1.name,"Nguyễn Văn Mạnh") + "--Mau toc: " +  p1.changeOOP(p1.toc, "đỏ") + "--Ngôn ngữ: " + p1.changeOOP(p1.ngonngu, "VNI,ENG"));
		System.out.println(p2.changeOOP(p2.name,"Phạm Thị Hồng Nhung") + "--Mau toc: " +  p2.changeOOP(p2.toc, "tím	") + "--Ngôn ngữ: " + p2.changeOOP(p2.ngonngu, "VNI,ENG"));
		System.out.println(p3.name + "--Mau toc: " +  p3.changeOOP(p3.toc, "xanh") + "--Ngôn ngữ: " + p3.changeOOP(p3.ngonngu, "VNI,ENG,KOREA"));
		System.out.println(p4.name + "--Mau toc: " +  p4.changeOOP(p4.toc, "tím	") + "--Ngôn ngữ: " + p4.changeOOP(p1.ngonngu, "VNI,ENG"));
		
		System.out.println("----------------------1--------------------");
		
		System.out.println("họ tên: " + p1.changeOOP(p1.name, "Nguyễn Văn Mạnh"));
		System.out.println("Số chân: " + p1.chan);
		System.out.println("Ngôn ngữ " + p1.changeOOP(p1.ngonngu,"VNI,ENG"));
		System.out.println("Giới tính: " + p1.sex);
		
		
        System.out.println("----------------------2--------------------");
		
		System.out.println("họ tên: " + p2.changeOOP(p2.name, "Phạm Thị Hồng Nhung"));
		System.out.println("Số chân: " + p2.chan);
		System.out.println("Ngôn ngữ " + p2.changeOOP(p2.ngonngu,"VNI,ENG"));
		System.out.println("Giới tính: " + p2.sex);
		
	}

}


class people {
	String id="";
	String name="";
	int chan;
	int tay;
	String toc="";
	String ngonngu="";
	String sex="";
	
	public String changeOOP(String val1, String val2){
		return val2 ;
	
		
	}
	

}
